package com.service.dao.enums;

import com.google.common.collect.Lists;
import lombok.Getter;

import java.util.List;

@Getter
public enum OtcStatusEnum {
    FOR_SALE(1, "待交易"), TRADING(2, "交易中"), COMPLETE(3, "交易完成"), CANCEL(4, "交易取消");
    private int status;
    private String desc;

    OtcStatusEnum(int status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public static List<Integer> getTradingStatus() {
        return Lists.newArrayList(FOR_SALE.status, TRADING.status);
    }

}
